home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 15395 < prev    next >
Encoding:
Text File  |  1996-08-05  |  994 b   |  23 lines

  1. Newsgroups: comp.lang.c
  2. Path: netcom.com!smryan
  3. From: smryan@netcom.com (@#$%!?!)
  4. Subject: Re: Q: C pipe function
  5. Message-ID: <smryanDq1IzB.D01@netcom.com>
  6. Organization: The Programmer formerly known as S M Ryan
  7. X-Newsreader: TIN [version 1.2 PL1]
  8. References: <3174FEA6.41C6@wight.hursley.ibm.com>
  9. Date: Thu, 18 Apr 1996 04:25:59 GMT
  10. Sender: smryan@netcom12.netcom.com
  11.  
  12. : Is there a function accessible from C that allows you to write to the
  13. : stdin of a command and read from the stdout of that command? eg :-
  14.  
  15. Already defined? No. But it shouldn't be that difficult to write one in Unix:
  16. make two pipes, fork, close respective ends and reassign to descriptors
  17. 0 and 1, and then exec.
  18. -- 
  19. The Queen who loves, the Queen of life,    | smryan@netcom.com  PO Box 1563
  20. the Queen who straits, the Queen of strife;|          Cupertino, California
  21. with gasp of death or gift of breath       | (xxx)xxx-xxxx            95015
  22. she brings the choice of birth or knife.   |         I don't use no smileys
  23.